From f2c61ffbe68465b4e2c495083dfe98fe4b11aa1b Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 11 Jul 2005 09:22:15 +0000 Subject: [PATCH] Fix stupid switch stmt mess-up that broke emulation of move to/from debug register. --- xen/arch/x86/traps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 6990d3a9e6..ab32049ec9 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -843,6 +843,11 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) UNLOCK_BIGLOCK(v->domain); break; + default: + goto fail; + } + break; + case 0x23: /* MOV ,DR? */ opcode = insn_fetch(u8, 1, eip); modrm_reg |= (opcode >> 3) & 7; @@ -852,11 +857,6 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) goto fail; break; - default: - goto fail; - } - break; - case 0x30: /* WRMSR */ /* Ignore the instruction if unprivileged. */ if ( !IS_PRIV(v->domain) ) -- 2.30.2